import { CustomError } from "./custom-error"

export class NotAuthorizedError extends CustomError {
	statusCode = 401;
	constructor () {
		super("身份验证失败");
		Object.setPrototypeOf(this, NotAuthorizedError.prototype);
	}
	serializeErrors(){
		return [{ message: "身份验证失败"}];
	}
}
